Skip to content

feat(apollo-react): add remark-breaks to sticky note markdown rendering, scroll improvements (3/3) [MST-7636]#430

Open
david-rios-uipath wants to merge 2 commits intofeat/sticky-note-formatting-toolbar-v2from
feat/sticky-note-formatting-next
Open

feat(apollo-react): add remark-breaks to sticky note markdown rendering, scroll improvements (3/3) [MST-7636]#430
david-rios-uipath wants to merge 2 commits intofeat/sticky-note-formatting-toolbar-v2from
feat/sticky-note-formatting-next

Conversation

@david-rios-uipath
Copy link
Copy Markdown
Contributor

@david-rios-uipath david-rios-uipath commented Mar 31, 2026

There are two main changes in this PR:

  • Line break rendering support
  • Simpler scrolling on overflow

1. Line break rendering support

Adds remark-breaks (remark plugin) to turn soft line endings (enters) into hard breaks. This makes our line end behavior fall more closely in line with what a user would expect from a WYSIWYG editor (i.e. FigJam sticky notes)

Before

2026-03-31 10 33 08

After

2026-03-31 10 32 07

2. Simpler scrolling on overflow

Only adds nowheel class to the sticky note element when the wheel event starts on the sticky note. This prevents the sudden cancellation of canvas scroll inertia (e.g. if the user starts scrolling outside the sticky note and their cursor ends up within the sticky note, we continue navigating on the canvas and ignore sticky note scroll behavior).

Before

User has to manually drag the scrollbar to scroll on a sticky note w/ overflow

2026-03-31.11.01.42.mp4

After

2026-03-31.10.55.53.mp4

@david-rios-uipath
Copy link
Copy Markdown
Contributor Author

@david-rios-uipath david-rios-uipath changed the title feat(apollo-react): add remark-breaks to sticky note markdown rendering feat(apollo-react): add remark-breaks to sticky note markdown rendering (3/3) Mar 31, 2026
@github-actions
Copy link
Copy Markdown

Dependency License Review

  • 1926 package(s) scanned
  • ✅ No license issues found
  • ⚠️ 3 package(s) excluded (see details below)
License distribution
License Packages
MIT 1691
ISC 89
Apache-2.0 56
BSD-3-Clause 28
BSD-2-Clause 23
BlueOak-1.0.0 8
MPL-2.0 5
MIT OR Apache-2.0 3
MIT-0 3
CC0-1.0 3
LGPL-3.0-or-later 2
(MIT OR Apache-2.0) 2
Unlicense 2
Python-2.0 1
CC-BY-4.0 1
(MPL-2.0 OR Apache-2.0) 1
Unknown 1
Artistic-2.0 1
(WTFPL OR MIT) 1
(BSD-2-Clause OR MIT OR Apache-2.0) 1
CC-BY-3.0 1
0BSD 1
(MIT OR CC0-1.0) 1
MIT AND ISC 1
Excluded packages
Package Version License Reason
@img/sharp-libvips-linux-x64 1.2.4 LGPL-3.0-or-later LGPL pre-built binary, not linked
@img/sharp-libvips-linuxmusl-x64 1.2.4 LGPL-3.0-or-later LGPL pre-built binary, not linked
khroma 2.1.0 Unknown MIT per GitHub repo, missing license field in package.json

@david-rios-uipath david-rios-uipath marked this pull request as ready for review March 31, 2026 14:35
@david-rios-uipath david-rios-uipath marked this pull request as draft March 31, 2026 14:36
@david-rios-uipath david-rios-uipath changed the title feat(apollo-react): add remark-breaks to sticky note markdown rendering (3/3) feat(apollo-react): add remark-breaks to sticky note markdown rendering, scroll improvements (3/3) Mar 31, 2026
@david-rios-uipath david-rios-uipath marked this pull request as ready for review March 31, 2026 15:02
@david-rios-uipath david-rios-uipath changed the title feat(apollo-react): add remark-breaks to sticky note markdown rendering, scroll improvements (3/3) feat(apollo-react): add remark-breaks to sticky note markdown rendering, scroll improvements (3/3) [MST-7636] Mar 31, 2026
david-rios-uipath and others added 2 commits April 1, 2026 22:15
Single newlines in sticky notes now render as <br> instead of being
collapsed by the markdown parser, matching user expectations for
line breaks in a note-taking context.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@david-rios-uipath david-rios-uipath force-pushed the feat/sticky-note-formatting-toolbar-v2 branch from ce8b974 to 1e5fb4f Compare April 2, 2026 02:15
@david-rios-uipath david-rios-uipath force-pushed the feat/sticky-note-formatting-next branch from fe4c2c3 to b6e0981 Compare April 2, 2026 02:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants